package vip.sweet.biz.modular.cultural.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import vip.sweet.biz.modular.cultural.params.BizCulturalContentTagsAddParams;
import vip.sweet.biz.modular.cultural.service.BizCulturalContentTagsService;
import vip.sweet.common.enums.ResponseEnum;
import vip.sweet.common.response.CommonResponse;

/**
 * @author ASUS
 * @Date 2025/10/5 0:00
 * @Descripition
 */
@RestController
@RequestMapping("/biz/culturalContentTags")
@Tag(name = "文化内容标签控制器")
public class BizCulturalContentTagsController {
    @Resource
    private BizCulturalContentTagsService bizCulturalContentTagsService;
    @PostMapping("/add")
    @Operation(summary = "添加文化内容标签接口")
    public CommonResponse add(@RequestBody @Validated BizCulturalContentTagsAddParams addCulturalContentTagsParams){
        return bizCulturalContentTagsService.add(addCulturalContentTagsParams) ? CommonResponse.success("添加成功") : CommonResponse.error(ResponseEnum.ERROR,"添加失败");
    }
}
